package com.huluobo.a2307douyindemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2307douyindemo.R
import com.huluobo.a2307douyindemo.utils.ImageUtils
import com.huluobo.lib_base.bean.VideoBean

/**
 *  Created by LC on 2025/9/25.
 */
class LikeAdapter : BaseQuickAdapter<VideoBean, BaseViewHolder>(R.layout.item_like) {
    override fun convert(holder: BaseViewHolder, item: VideoBean) {
        ImageUtils.loadImage(context, item.videomainimg, holder.getView(R.id.item_like_video_iv))
        ImageUtils.loadCircleImage(context, item.headpath, holder.getView(R.id.item_like_header_iv))
        holder.setText(R.id.item_like_video_name_tv, item.authname)
    }
}